//
//  LSPubulishMatchBottomView.m
//  LookScore
//
//  Created by wws on 2018/5/9.
//  Copyright © 2018年 ChongQingXunTiCompany. All rights reserved.
//

#import "LSPubulishMatchBottomView.h"

@implementation LSPubulishMatchBottomView

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        UIView * lineView = [[UIView alloc] init];
        lineView.backgroundColor = LSLineGrayColor;
        [self addSubview:lineView];
        lineView.sd_layout
        .leftEqualToView(self)
        .rightEqualToView(self)
        .topEqualToView(self)
        .heightIs(0.5);
        UIButton * loadMoreBtn = [[UIButton alloc] init];
        [loadMoreBtn setImage:[UIImage imageNamed:@"loadMore"] forState:UIControlStateNormal];
        [loadMoreBtn addTarget:self action:@selector(loadMoreBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:loadMoreBtn];
        
        loadMoreBtn.sd_layout
        .topSpaceToView(lineView, 5)
        .centerXEqualToView(self)
        .widthIs(200)
        .heightIs(35);
    }
    return self;
}
- (void)loadMoreBtnClicked:(UIButton *)sender{
    if (self.block) {
        self.block(sender);
    }
    
    
}



@end
